/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package apteka;

import apteka.User;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.SimpleFormController;
import org.springframework.web.servlet.view.RedirectView;

/**
 *
 * @author Marek
 */

@Controller
@RequestMapping("/login.htm")
public class LoginController  {

    @RequestMapping(method = RequestMethod.GET)
     public String showPage(Map model) {
        return "login";
     }
    
     @RequestMapping(params="failure=1",method=RequestMethod.GET)
     public String loginDenied(Map model) {
         return "login";
     }

}
